#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QGraphicsScene>
#include <QGraphicsView>
#include <QGraphicsItem>

#include <QTimer>

#include <QPushButton>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

    void resetVar();
    void addBorder();

    QTimer *timer2;

public slots:
   void drawGrid();
   void drawDiagonal();
   void drawSpiral();
   void drawCorridor();
   void handleButton();
   void handleButtonGrid();
   void handleButtonDiagonal();
   void handleButtonSpiral();
   void handleButtonCorridor();


public:
    Ui::MainWindow *ui;

    QGraphicsScene *scene;

    QGraphicsRectItem *rectangle;
    QGraphicsLineItem *line;

    int i;
    int j;
    int z;
    int x;

    int n =30;
    qreal radius;
    qreal circleRadius;
    int elapsed;
    qreal r;


    QPushButton *m_buttonClear;
    QPushButton *m_buttonGrid;
    QPushButton *m_buttonDiagonal;
    QPushButton *m_buttonSpiral;
    QPushButton *m_buttonCorridor;
};

#endif // MAINWINDOW_H
